package com.base.cn.platform.os.service.manage.user.gradeconfig;


/**
 * 用户基础Service
 *
 * @author ll
 * @create 2018-4-17 15:10
 */

import com.base.cn.platform.os.service.FeignAuthConfig;
import com.base.cn.platform.os.service.manage.BaseService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 *  等级数据接口
 *
 * @author ll
 * @create 2018-04-09-19:05
 */
@FeignClient(value = BaseService.appName,configuration = FeignAuthConfig.class)
public interface CusUserGradeConfigService extends BaseService {



    /**
     * 分页搜索等级列表
     * @param currentPage 分页
     * @return
     */
    @RequestMapping(contextPath + "/user/queryCusUserGradeConfigList")
    Map<String, Object> queryCusUserGradeConfigList(@RequestParam(value = "currentPage", defaultValue = "1", required = false) int currentPage);
    /**
     * 添加等级
     * @param cusUserGradeConfig
     * @return
     */
    @RequestMapping(contextPath + "/user/saveCusUserGradeConfig")
    Map<String, Object> saveCusUserGradeConfig(@RequestBody Map<String, Object> cusUserGradeConfig);



    /**
     * 搜索所有
     * @return
     */
    @RequestMapping(contextPath + "/user/queryCusUserGradeConfigAll")
    List<Map<String, Object>> queryCusUserGradeConfigAll();
    /**
     * 搜索根据Id
     * @return
     */
    @RequestMapping(contextPath + "/user/queryGradeConfigById")
    Map<String, Object> queryGradeConfigById(@RequestParam("id") BigDecimal id);
}
